<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>增加员工信息</title>
</head>
<body>
    <div align="center">
        <h1>增加员工信息</h1>
    <hr>
    <form action="", method="post">
        <!-- 防CSRF       -->
        {% csrf_token %}

        <div>
            <label>姓名：</label>
            <input type="text" name="name" id="name">
        </div>
        <br>
        <div>
            <label>邮箱：</label>
            <input type="text" name="email" id="email">
        </div>
        <br>
        <div>
            <label>薪水：</label>
            <input type="text" name="salary" id="salary">
        </div>
        <br>
        <div>
            <label>联系信息：</label>
            <select name="info" id="info">
                {% for info in info_list %}
                <option value="{{info.id}}">{{info.phone}}{{info.address}}</option>
                {% endfor %}
            </select>
        </div>
        <br>
        <div>
            <label>部门：</label>
            <select name="dep" id="dep">
                {% for dep in dep_list %}
                <option value="{{dep.id}}">{{dep.dep_name}}</option>
                {% endfor %}
            </select>
        </div>
        <br>
        <div>
            <label>团队：</label>
            <select name="group" id="group" multiple='true'>
                {% for group in group_list %}
                <option value="{{group.id}}">{{group.group_name}}</option>
                {% endfor %}
            </select>
        </div>
        <br>
        <div>
            <input type="submit" value="保存">
        </div>
    </form>
    <!--    -->
    {{ error_info }}
    </div>
</body>
</html>